 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Demo</title>
	<link rel='STYLESHEET' type='text/css' href='codebase/dhtmlxgrid.css'>
	<link rel='STYLESHEET' type='text/css' href='codebase/skin/dhtmlxgrid_dhx_skyblue.css'>
	<script src='codebase/dhtmlxcommon.js'></script>
	<script src='codebase/dhtmlxgrid.js'></script>
	<script src='codebase/dhtmlxgridcell.js'></script>
	
	
	<script src='../client/dhtmlxgrid_export.js'></script>
	
</head>

<body>
	<input type="button" name="" value="Get as Excel" style="width:300px; font-weight:bold;" onclick="mygrid.toExcel('../server/generate.php');"><br><br>
	
	<div id="gridbox" style="width:650px; height:350px"></div>
<script>
		mygrid = new dhtmlXGridObject('gridbox');
		mygrid.setImagePath('codebase/imgs/');
		mygrid.setHeader("Shop,#cspan,#cspan,#cspan,Delivery,#cspan");
		mygrid.attachHeader("Sales,Book,#cspan,Price,Is available,Date");
		mygrid.attachHeader("#rspan,Title,Author,#rspan,#rspan,#rspan");
		mygrid.setInitWidths("50,150,150,100,70,*")
		mygrid.enableMultiline(true)
		mygrid.setColAlign("right,left,left,right,center,center")
		mygrid.setColTypes("ro,ed,ed,price,ch,ro");
		
		mygrid.setSkin("dhx_skyblue")
		mygrid.init();
		
		mygrid.loadXML("grid_text.xml");
</script>
</body>
</html>
